package org.example.aop;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * 前置操作
 */
public class Log implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("前置通知操作,方法名:"+method.getName()+
                ",参数列表:"+ Arrays.toString(args)+
                ",target:"+target);
    }
}
